<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{$title}</title>
	<meta name="keywords" content="{$keywords}" />
	<meta name="description" content="{$description}" />
	<link rel="stylesheet" href="__PUBLIC__/css/main.css" />
	<script type="text/javascript" type="text/javascript" src="__PUBLIC__/artDialog/artDialog.js?skin=default"></script>
	<script type="text/javascript" type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
	<script type="text/javascript" type="text/javascript" src="__PUBLIC__/js/main.js"></script>
</head>
<body>
	<div class="main_box">
		<div class="vote_1"></div>
		<div class="vote_2"></div>
		<div class="vote_3"></div>
		<div class="vote_4">
			<ul id="loginbox" class="mt_20">
                <li><a href="__URL__">去报名</a></li>
                <li>|</li>
                <li><a href="__URL__/votelist">去投票</a></li>
                <li>|</li>
                <?php if(empty($_SESSION['uid'])){?>
				<li><a href="javascript:signin();">登录</a></li><li>|</li><li><a href="javascript:signup()">注册</a></li>
				<?php }else{?>
				<li><p class="welcome">欢迎您，<?php echo $_SESSION['uname'];?> <a href="__URL__/loginout">退出</a></p></li>
				<?php }?>
			</ul>
		</div>
		<div class="vote_5"></div>
		<div class="vote_repeat">
			<div class="votelist clearfix">
			<ul>
				<volist name="list" id="vo">
					<if condition="$vo.rank % 5 == 0">
						<li class="votebox" style="margin-right:0px">
					<else/>	
						<li class="votebox">	
					</if>
					<div class="photobox clearfix">
						<img class="photo" src="/{$vo.avatar}" alt="{$vo.group_name}" />
						<p class="txtbg"></p>
						<p class="gpname">{$vo.group_name}</p>
					</div>
					<dl class="voteinfo">
						<dt>排名：第{$vo.rank}名</dt>
						<dd>票数：<span id="rank_{$vo.gid}">{$vo.votenum}</span>票</dd>
						<dd><a href="javascript:subvote({$vo.gid});" class="votebtn"></a></dd>
					</dl>
				</li>
				</volist>
			</ul>
			</div>
		</div>
		<div class="vote_bottom"></div>
    </div>
    <!--登录模板 begin-->
    <div id="signin" style="display:none">
        <form action="__URL__/signin" method="post" class="signbox">
            <p>登 录 名：<input type="text" name="uname" class="field"/></p>
            <p>登录密码：<input type="password" name="pwd" class="field"/></p>
            <p style="text-align:center"><input type="submit" value="登录" class="btn"/><input type="reset" value="重置" class="btn"/></p>
            <p style="text-align: center"><a href="javascript:signup();">还没有账号，去注册</a></p>
        </form>
    </div>
    <!--登录模板 begin-->

    <!--注册模板 begin-->
    <div id="signup" style="display:none">
        <form action="__URL__/signup" name="form1" method="post" onsubmit="return checkform()" class="signbox">
            <p>登 录 名：<input type="text" id="uname" name="uname" class="field"/></p>
            <p>登录密码：<input type="password" id="pwd" name="pwd" class="field"/></p>
            <p>确认密码：<input type="password" id="pwd2" name="pwd2" class="field"/></p>
            <p style="text-align:center"><input type="submit" value="注册" class="btn"/><input type="reset" value="重置" class="btn"/></p>
            <p style="text-align: center"><a href="javascript:signin();">我有账号，去登录</a></p>
        </form>
    </div>
    <!--end 注册模板-->
</body>
</html>